package com.yunfeng.supercall.bean;

import java.util.ArrayList;

import android.os.Parcel;

public class SuperFriendsBean extends ContactsBaseBean  {

	
	int positionNickNameStart;
	int positionNickNameEnd;
	
	int positionContentStart;
	int positionContentEnd;
	public SuperFriendsBean(SuperFriendsDelegateBean friends) {
		setReal_name(friends.getReal_name());
		setPhone(friends.getPhone());
		setPhoto(friends.getPhoto());
		setUserid(friends.getUserid());
		setType(friends.getType());
		setLastChatTime(friends.getLastChatTime());
		setSuid(friends.getSuid());
		setVo_id(friends.getVo_id());
		setContactsFromPhone(friends.isContactsFromPhone());
		setAddress(friends.getAddress());
		setLevel(friends.getLevel());
		setIsfollower(friends.getIsfollower());
		setSucolor(friends.getSucolor());
		setNote(friends.getNote());
		setNick_name(friends.getNick_name());
		setLat(friends.getLat());
		setLng(friends.getLng());
//		setSex(friends.getSex());
		// setUnreadCount(friends.getUnreadcount());
		// setUnread(friends.isUnread());
	}

	public int getContactsType() {
		// TODO Auto-generated method stub
		return TYPE_SUPER_CONTACTS;
	}

	public SuperFriendsBean() {

	}

	public static final Creator<SuperFriendsBean> CREATOR = new Creator<SuperFriendsBean>() {

		@Override
		public SuperFriendsBean[] newArray(int size) {
			// TODO Auto-generated method stub
			return new SuperFriendsBean[size];
		}

		@Override
		public SuperFriendsBean createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new SuperFriendsBean(source);
		}
	};

	public boolean equals(Object o) {
		if (o instanceof SuperFriendsBean) {
			SuperFriendsBean friends = (SuperFriendsBean) o;
			return friends.getUserid() == getUserid()
					|| friends.getPhone().equals(getPhone());
		}
		return false;
	};

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		super.writeToParcel(dest, flags);
		dest.writeString(vo_id);
		dest.writeString(address);
		dest.writeString(note);
		dest.writeInt(level);
		dest.writeInt(isfollower);
		dest.writeInt(sex);
		dest.writeInt(isClicked);
	}

	public SuperFriendsBean(Parcel parcel) {
		super(parcel);
		vo_id = parcel.readString();
		address = parcel.readString();
		note = parcel.readString();
		level = parcel.readInt();
		isfollower = parcel.readInt();
		lat = parcel.readInt();
		lng = parcel.readInt();
		sex = parcel.readInt();
		isClicked = parcel.readInt();
	}
	private ArrayList<String> mListImg;
	public ArrayList<String> getmListImg() {
		return mListImg;
	}

	public void setmListImg(ArrayList<String> mListImg) {
		this.mListImg = mListImg;
	}

	private String vo_id;
	private double lat;
	private int isClicked = 0;
	private String shareimgs;
	private String tel;
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getShareimgs() {
		return shareimgs;
	}

	public void setShareimgs(String shareimgs) {
		this.shareimgs = shareimgs;
	}

	public int getIsClicked() {
		return isClicked;
	}

	public void setIsClicked(int isClicked) {
		this.isClicked = isClicked;
	}

	private int sex;
	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public double getLng() {
		return lng;
	}

	public void setLng(double lng) {
		this.lng = lng;
	}

	public int getPositionNickNameStart() {
		return positionNickNameStart;
	}

	public void setPositionNickNameStart(int positionNickNameStart) {
		this.positionNickNameStart = positionNickNameStart;
	}

	public int getPositionNickNameEnd() {
		return positionNickNameEnd;
	}

	public void setPositionNickNameEnd(int positionNickNameEnd) {
		this.positionNickNameEnd = positionNickNameEnd;
	}

	public int getPositionContentStart() {
		return positionContentStart;
	}

	public void setPositionContentStart(int positionContentStart) {
		this.positionContentStart = positionContentStart;
	}

	public int getPositionContentEnd() {
		return positionContentEnd;
	}

	public void setPositionContentEnd(int positionContentEnd) {
		this.positionContentEnd = positionContentEnd;
	}

	private double lng;
	
	private boolean contactsFromPhone;// 这个好友是手机通讯录，还是超友通讯录
	private String address;
	private int level;
	private String note;
	private int isfollower;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public int getIsfollower() {
		return isfollower;
	}

	public void setIsfollower(int isfollower) {
		this.isfollower = isfollower;
	}

	public String getVo_id() {
		return vo_id;
	}

	public void setVo_id(String vo_id) {
		this.vo_id = vo_id;
	}

	public boolean isContactsFromPhone() {
		return contactsFromPhone;
	}

	public void setContactsFromPhone(boolean contactsFromPhone) {
		this.contactsFromPhone = contactsFromPhone;
	}

	
	
}
